<template>
  <div class="animal">
    <animal-item v-for="item in animals" :key="item.id" :animal="item" />
  </div>
</template>

<script>
  import AnimalItem from './AnimalItem'
  export default {
    name: 'Animal',
    components: {
      AnimalItem
    },
    props: {
      animals: Array
    }
  }
</script>

<style scoped>
  .animal {
    display: flex;
    flex-wrap: wrap;
  }
</style>